#ifndef _BOMBBURST_H_
#define _BOMBBURST_H_


#include "Fix.h"
#include "..\Define.h"

struct UVTALBE
{
	D3DXVECTOR2 uv;
};


class BombBurst : public Fix
{
public:


	BombBurst();
	~BombBurst();


	bool Create( IDirect3DDevice9 *pkDevice );
	void Update( unsigned int dt );
	void Render();
	void Release();
	
	void SetBombBurst( float Power, int Map[MAP_HEIGHT][MAP_WIDTH] ); 
	bool GetReleaseTime() { return m_bDelete; }
	void MapSetBack( int Map[MAP_HEIGHT][MAP_WIDTH] );



protected:

	int InitBombBurstVB();

	int MakeBuffer();
	int MakeRange( int Map[MAP_HEIGHT][MAP_WIDTH], int Power, int x, int y );
	int MakeWorld(  int Count, int Loop, D3DXVECTOR3 Pos );
	void MakeUV();
	void DeleteTime( int Count );

	int m_iDirUp;
	int m_iDirDown;
	int m_iDirLeft;
	int m_iDirRight;
	int m_iDirCenter;

	int m_iRangeNum;

	UVTALBE m_UV[16][4];

	int m_iAddTime;
	int m_iUVChagne;
	int m_iDeadTime;

};


#endif